package com.ms.game.itembox.db;

import com.ms.service.module.datacenterlite.CentralAsyncCommand;
import com.xpec.c4.db.dao.PlayerDAO;
import com.xpec.c4.game.utility.GUID;

public class UpdateLastLevelBoxUseLevelAsync extends CentralAsyncCommand{

	private static final long serialVersionUID = 217668494600364492L;

	private GUID playerId;
	
	private int levelBoxLevel;
	
	
	@Override
	public void asyncExecute() throws Exception {
		PlayerDAO.updateLastLevelBoxUseLevel(playerId, levelBoxLevel);		
	}

	@Override
	public void callBackExecute(Object... userData) throws Exception {		
	}

	public GUID getPlayerId() {
		return playerId;
	}

	public void setPlayerId(GUID playerId) {
		this.playerId = playerId;
	}

	public int getLevelBoxLevel() {
		return levelBoxLevel;
	}

	public void setLevelBoxLevel(int levelBoxLevel) {
		this.levelBoxLevel = levelBoxLevel;
	}
	
}
